package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @Author zhmwi
 * @Date 2021/7/8
 * @Dersciption
 */
public interface DepartmentRepository extends MongoRepository<Department,String> {

    //根据医院编码和科室编码查询科室
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);

    //根据医院编码查询科室集合
    List<Department> getDepartmentByHoscode(String hoscode);
}
